package demo;

public class Bird extends Animal implements IFlying,IRunning {
    public Bird(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.println(name + "吃鸟粮");
    }

    @Override
    public void fly() {
        System.out.println(name + "小鸟飞");
    }

    @Override
    public void run() {
        System.out.println(name + "小鸟跑");
    }
}
